﻿
using NewInstanceType = KinonekoSoftware.CodariaDB.InstanceType;
using OldInstanceType = Acorisoft.FutureGL.MigaDB.Interfaces.DocumentType;
namespace KinonekoSoftware.Studio.Utils.Transformers
{
    public static class TransformerHelper
    {
        public static NewInstanceType GetInstanceType(OldInstanceType type)
        {
            return type switch
            {
                OldInstanceType.Skill     => NewInstanceType.Ability,
                OldInstanceType.Item      => NewInstanceType.Item,
                OldInstanceType.Geography => NewInstanceType.Geography,
                OldInstanceType.Creature  => NewInstanceType.Species,
                OldInstanceType.Plant     => NewInstanceType.Plant,
                OldInstanceType.Resource  => NewInstanceType.Item_Resources,
                OldInstanceType.Material  => NewInstanceType.Item_Material,
                OldInstanceType.Ore       => NewInstanceType.Item_Resources,
                OldInstanceType.Country   => NewInstanceType.PoliticalGroups_Country,
                OldInstanceType.Gangbang  => NewInstanceType.Team_Gangs,
                OldInstanceType.Team      => NewInstanceType.Team_Club,
                OldInstanceType.Poison    => NewInstanceType.Item_Item,
                _                         => NewInstanceType.Character,
            };
        }
    }
}